﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UpdateRoom.aspx.cs" Inherits="ClassRoomManagement_UpdateRoom" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../Css/ys.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../My97DatePicker/WdatePicker.js"></script>
    <script src="../Js/jquery-1.4.2.min.js"></script>
<script language=javascript>
function onlyNum(value)
{
    if (isNaN(value))
    { alert("对不起，请输入数字端口号！"); }
    $("#txtSvrPort").focus();
        
}
</script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="zt mainCenter">
        <div class="contentBody">
            <div class="title">
                教室管理-->修改教室信息</div>
            <br class="sp3px" />
            <table style="width: 100%; color: #336699;" class="ta1">
                <tr>
                    <td class="ta2 tag">
                        所属学校：
                    </td>
                    <td class="ta2">
                        <asp:DropDownList ID="dlSchool" runat="server" DataTextField="VS_name" DataValueField="ID"
                            CssClass="inp2">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        摄像头状态 ：
                    </td>
                    <td class="ta2">
                        <asp:DropDownList ID="DropDownList1" runat="server" CssClass="inp2">
                            <asp:ListItem Value="1">可用</asp:ListItem>
                            <asp:ListItem Value="0">禁用</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        教室名称 ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtVR_roomName" runat="server" CssClass="inp1"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" Text="*"
                            ControlToValidate="txtVR_roomName" ErrorMessage="教室名称不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        教室编号 ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtVR_roomCode" runat="server" CssClass="inp1"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Text="*"
                            ControlToValidate="txtVR_roomCode" ErrorMessage="教室编号不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        摄像头产品号 ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtVR_cameraPN" runat="server" CssClass="inp1"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="*"
                            ControlToValidate="txtVR_cameraPN" ErrorMessage="摄像头产品号不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        摄像头编号 ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtVR_cameraCode" runat="server" CssClass="inp1"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Text="*"
                            ControlToValidate="txtVR_cameraCode" ErrorMessage="摄像头编号不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        摄像头分辨率 ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtVR_cameraImgSize" runat="server" CssClass="inp1"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" Text="*"
                            ControlToValidate="txtVR_cameraImgSize" ErrorMessage="摄像头分辨率不能为空" ValidationGroup="register"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                <asp:HiddenField ID="hfIPCID" runat="server" />
                    <td class="ta2 tag">
                        摄像头IP ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtIPCIp" runat="server" CssClass="inp1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        摄像头端口号 ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtIPCPort" runat="server" CssClass="inp1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag" style="height: 25px">
                        摄像头用户名 ：
                    </td>
                    <td class="ta2" style="height: 25px">
                        <asp:TextBox ID="txtIPCUser" runat="server" CssClass="inp1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        摄像头密码 ：
                    </td>
                    <td class="ta2">
                        <asp:TextBox ID="txtIPCPwd" runat="server" CssClass="inp1"></asp:TextBox>
                    </td>
                </tr>
                 <tr>
                    <td class="ta2 tag">
                        所属SVR端口 ：
                    </td>
                    
                    <td class="ta2">
                       <input type="text" id="txtSvrPort" runat="server"  onchange="onlyNum(this.value);" class="inp1"/>
                       <input type="hidden"  id="hfPort" runat="server"/>
                    </td>
                </tr>
                <tr>
                    <td class="ta2 tag">
                        所属SVR ：
                    </td>
                    <td class="ta2">
                        <asp:DropDownList ID="ddlSVRList" runat="server" CssClass="inp2" Width="150px">
                        </asp:DropDownList>
                          <input type="hidden"  id="hfSvr" runat="server"/>
                    </td>
                </tr>
            </table>
            <asp:Button ID="btnupdate" runat="server" Text="修改" OnClick="btnUpdate_Click" CssClass="button"
                ValidationGroup="register"></asp:Button>&nbsp;&nbsp;
            <input type="button" onclick="this.form.reset(); " value="重置" class="button" id="btnReset"
                runat="server" />&nbsp;&nbsp;<input type="button" value="返回" onclick="window.history.go(-1)"
                    class="button" id="back" runat="server">
            <p>
                <span id="AuthSpan" style="color: Red; font-size: small"></span>
            </p>
            <p style="color: Red; text-align: left">
                <asp:Label ID="lblMess" runat="server"></asp:Label></p>
        </div>
        <p style="margin-left: 50px">
            &nbsp;<asp:ValidationSummary ID="validSummary" runat="server" HeaderText="错误信息" ValidationGroup="register"
                Height="54px" />
    </div>
    </form>
</body>
</html>
